package com.miniapp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.miniapp.entity.MiniTemplateEntity;
import com.miniapp.entity.MiniTesterEntity;

import java.util.List;

public interface MiniTesterService extends BaseService<MiniTesterEntity> , IService<MiniTesterEntity> {


    /**
     * 查询微信体验着
     * @param id
     * @param wechatId
     * @return
     */
    MiniTesterEntity findByMiniUserProductIdAndWechatId(Long id, String wechatId);

    /**
     * 保存体验着
     * @param wechatId
     * @param id
     */
    void saveTester(String wechatId, Long id);

    /**
     * 删除体验着
     * @param id
     * @param wechatId
     */
    void deleteTester(Long id, String wechatId);

    /**
     * 查询体验着
     * @param id 小程序ID
     * @return
     */
    List<MiniTesterEntity> findByMiniUserProductId(Long id);
}
